package com.zjitc.pojo;

import lombok.*;

import java.io.Serializable;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/11/5 12:49
 * @description:
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserExtend implements Serializable {
    private String uid;
    private String username;
    private String phone;
    private String email;
    private String img;
    private String sex;
    private String state;
    private Integer integral;
    private Float wealth;

    public UserExtend(User user) {
        this.uid = user.getUid();
        this.username = user.getUsername();
        this.phone = user.getPhone();
        this.email = user.getEmail();
        this.img = user.getImg();
        this.sex = user.getSex();
        this.state = user.getState();
        this.integral = user.getIntegral();
        this.wealth = user.getWealth();
    }
}
